<%@ taglib prefix="s" uri="/struts-tags" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <base href="<%=basePath%>">

    <title>资源信息</title>
    <link type="text/css" href="css/base.css" rel="stylesheet" />
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <script type="text/javascript" src="js/jquery.min.js"></script>
    <script type="text/javascript" src="../js/menu.js"></script>
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->

</head>

<body>
<%@ include file="/page/share/menu.jsp" %>

    <div id="content">
        <h2>文件列表</h2>
        <hr>
        <form action="FileDownload!search.action" method="post" style="float: left;margin-left: -40px;">
            <table>
                <tr>
                    <td style="text-align: right;">
                        <input type="text" name="search" style="width: 180px; height: 25px;line-height: 25px;"> &nbsp
                    </td>
                    <td>
                        <input type="submit" value="搜索" onMouseOver="this.style.background='#2569c1'" onmouseout="this.style.background='#114a93'"
                               style="width:70px;height:28px;cursor:pointer;border: none;background: #2569c1;color: white;font-size: 16px; vertical-align:middle;" />
                    </td>
                </tr>
            </table>
        </form>
        <form action="FileDownload!searchCategory.action" method="post"  >
            <table>
                <tr>
                    <td style="text-align: right;">
                        <select name="resourceCategory" style="width: 180px;font-size: 16px; height: 25px;line-height: 25px;">
                            <option value="">------请选择------</option>
                            <option value="课件">课件</option>
                            <option value="案例">案例</option>
                            <option value="视频">视频</option>
                            <option value="电子书">电子书</option>
                        </select>&nbsp
                    </td>
                    <td>
                        <input type="submit" value="搜索" onMouseOver="this.style.background='#2569c1'" onmouseout="this.style.background='#114a93'"
                               style="width:70px;height:28px;cursor:pointer;border: none;background: #2569c1;color: white;font-size: 16px; vertical-align:middle;" />
                    </td>
                </tr>
            </table>
        </form>
        <form action="FileDownload!showOne.action" method="post" style="clear: both;margin-left: -40px;">
            <s:iterator value="resources" var="r">
                <table>
                    <tr>
                        <td style="height: 20px; width: 600px;">
                            <a href="FileDownload!showOne.action?resourceId=${r.resourceId}">${r.fileName} </a>
                        </td>
                        <td style="height: 20px;">${r.uploadTime}</td>
                    </tr>
                </table>
            </s:iterator>
        </form>
    </div>

    <div id="footer">
        <p style="text-align: center;color: #757575;padding: 20px 0px 0px 0px; font:12px;">Copyright © 2010-2013 蓝天白云团队 版权所有</p>
    </div>
</body>
</html>
